.class public Lcom/ninesky/widget/g;
.super Ljava/lang/Object;


# static fields
.field private static final b:Z

.field private static c:I

.field private static d:I

.field private static e:I

.field private static f:I


# instance fields
.field protected final a:Landroid/content/Context;

.field private final g:Landroid/widget/PopupWindow;

.field private h:Landroid/view/ViewGroup;

.field private i:Landroid/view/ViewGroup;

.field private j:Landroid/widget/ImageView;

.field private k:Landroid/widget/ImageView;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/4 v1, 0x0

    sget-boolean v0, Lcom/ninesky/widget/j;->a:Z

    sput-boolean v0, Lcom/ninesky/widget/g;->b:Z

    sput v1, Lcom/ninesky/widget/g;->c:I

    sput v1, Lcom/ninesky/widget/g;->d:I

    sput v1, Lcom/ninesky/widget/g;->e:I

    sput v1, Lcom/ninesky/widget/g;->f:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    const/4 v3, 0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    new-instance v0, Landroid/widget/PopupWindow;

    iget-object v1, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/PopupWindow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setWidth(I)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    const/4 v1, -0x2

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setHeight(I)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v3}, Landroid/widget/PopupWindow;->setTouchable(Z)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v3}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v3}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    new-instance v1, Lcom/ninesky/widget/i;

    invoke-direct {v1, p0}, Lcom/ninesky/widget/i;-><init>(Lcom/ninesky/widget/g;)V

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setTouchInterceptor(Landroid/view/View$OnTouchListener;)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030019

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    const v1, 0x7f0c000f

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/ninesky/widget/g;->i:Landroid/view/ViewGroup;

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    const v1, 0x7f0c0041

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/ninesky/widget/g;->j:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    const v1, 0x7f0c0042

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/ninesky/widget/g;->k:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    iget-object v1, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setContentView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setFocusableInTouchMode(Z)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    new-instance v1, Lcom/ninesky/widget/h;

    invoke-direct {v1, p0}, Lcom/ninesky/widget/h;-><init>(Lcom/ninesky/widget/g;)V

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    sget v0, Lcom/ninesky/widget/g;->d:I

    if-eqz v0, :cond_0

    sget v0, Lcom/ninesky/widget/g;->e:I

    if-nez v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    const/high16 v1, 0x4100

    invoke-static {v0, v1}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v0

    sput v0, Lcom/ninesky/widget/g;->d:I

    iget-object v0, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    const/high16 v1, 0x4120

    invoke-static {v0, v1}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v0

    sput v0, Lcom/ninesky/widget/g;->e:I

    :cond_1
    invoke-direct {p0}, Lcom/ninesky/widget/g;->a()V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/widget/g;)Landroid/widget/PopupWindow;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/view/WindowManager;

    if-eqz p0, :cond_1

    sget v0, Lcom/ninesky/widget/g;->f:I

    invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Display;->getOrientation()I

    move-result v1

    if-eq v0, v1, :cond_0

    invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v0

    sput v0, Lcom/ninesky/widget/g;->c:I

    invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getOrientation()I

    move-result v0

    sput v0, Lcom/ninesky/widget/g;->f:I

    :cond_0
    sget v0, Lcom/ninesky/widget/g;->c:I

    if-nez v0, :cond_1

    invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v0

    sput v0, Lcom/ninesky/widget/g;->c:I

    :cond_1
    return-void
.end method

.method private a(II)V
    .locals 6

    const v1, 0x7f0c0041

    if-ne p1, v1, :cond_1

    iget-object v0, p0, Lcom/ninesky/widget/g;->j:Landroid/widget/ImageView;

    :goto_0
    if-ne p1, v1, :cond_2

    iget-object v1, p0, Lcom/ninesky/widget/g;->k:Landroid/widget/ImageView;

    :goto_1
    invoke-direct {p0}, Lcom/ninesky/widget/g;->a()V

    iget-object v2, p0, Lcom/ninesky/widget/g;->j:Landroid/widget/ImageView;

    invoke-virtual {v2}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v2

    sget v3, Lcom/ninesky/widget/g;->d:I

    sget v4, Lcom/ninesky/widget/g;->c:I

    sget v5, Lcom/ninesky/widget/g;->e:I

    sub-int/2addr v4, v5

    sub-int/2addr v4, v2

    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p0

    check-cast p0, Landroid/view/ViewGroup$MarginLayoutParams;

    div-int/lit8 v0, v2, 0x2

    sub-int v0, p2, v0

    if-ge v0, v3, :cond_3

    move v0, v3

    :cond_0
    :goto_2
    iput v0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    const/4 v0, 0x4

    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/ninesky/widget/g;->k:Landroid/widget/ImageView;

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcom/ninesky/widget/g;->j:Landroid/widget/ImageView;

    goto :goto_1

    :cond_3
    if-le v0, v4, :cond_0

    move v0, v4

    goto :goto_2
.end method

.method private b(Landroid/view/View;II)V
    .locals 4

    const/4 v3, 0x0

    sget-boolean v0, Lcom/ninesky/widget/g;->b:Z

    if-eqz v0, :cond_0

    const-string v0, "Widget.QuickAction"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "showAboveLocation: x="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " y="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    const v0, 0x7f0c0042

    invoke-direct {p0, v0, p2}, Lcom/ninesky/widget/g;->a(II)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    const v1, 0x7f080001

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setAnimationStyle(I)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0, p1, v3, v3, p3}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    return-void
.end method

.method private static c(Landroid/view/View;)I
    .locals 5

    invoke-virtual {p0}, Landroid/view/View;->getRootView()Landroid/view/View;

    move-result-object v0

    const v1, 0x1020002

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v1

    sget-boolean v2, Lcom/ninesky/widget/g;->b:Z

    if-eqz v2, :cond_0

    const-string v2, "Widget.QuickAction"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "content view top="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    move v0, v1

    return v0
.end method

.method private c(Landroid/view/View;II)V
    .locals 4

    const/4 v3, 0x0

    sget-boolean v0, Lcom/ninesky/widget/g;->b:Z

    if-eqz v0, :cond_0

    const-string v0, "Widget.QuickAction"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "showBelowLocation: x="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " y="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    const v0, 0x7f0c0041

    invoke-direct {p0, v0, p2}, Lcom/ninesky/widget/g;->a(II)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    const/high16 v1, 0x7f08

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setAnimationStyle(I)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0, p1, v3, v3, p3}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    return-void
.end method

.method static synthetic d()Z
    .locals 1

    sget-boolean v0, Lcom/ninesky/widget/g;->b:Z

    return v0
.end method


# virtual methods
.method public final a(I)Landroid/view/View;
    .locals 2

    iget-object v0, p0, Lcom/ninesky/widget/g;->a:Landroid/content/Context;

    const-string v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/g;->a(Landroid/view/View;)V

    return-object v0
.end method

.method public final a(Landroid/view/View;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/g;->i:Landroid/view/ViewGroup;

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    return-void
.end method

.method public final a(Landroid/view/View;II)V
    .locals 4

    const/4 v3, -0x1

    const/4 v2, -0x2

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v1, v3, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0, v3, v2}, Landroid/view/ViewGroup;->measure(II)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getMeasuredHeight()I

    move-result v0

    invoke-static {p1}, Lcom/ninesky/widget/g;->c(Landroid/view/View;)I

    move-result v1

    sub-int v1, p3, v1

    if-le v1, v0, :cond_0

    sub-int v0, p3, v0

    invoke-direct {p0, p1, p2, v0}, Lcom/ninesky/widget/g;->b(Landroid/view/View;II)V

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0, p1, p2, p3}, Lcom/ninesky/widget/g;->c(Landroid/view/View;II)V

    goto :goto_0
.end method

.method public final b(Landroid/view/View;)V
    .locals 9

    const/4 v4, 0x0

    const/4 v8, -0x1

    const/4 v7, -0x2

    const/4 v6, 0x1

    const/4 v0, 0x2

    new-array v0, v0, [I

    invoke-virtual {p1, v0}, Landroid/view/View;->getLocationOnScreen([I)V

    sget-boolean v1, Lcom/ninesky/widget/g;->b:Z

    if-eqz v1, :cond_0

    const-string v1, "Widget.QuickAction"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "anchor y on screen: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    aget v3, v0, v6

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    new-instance v1, Landroid/graphics/Rect;

    aget v2, v0, v4

    aget v3, v0, v6

    aget v4, v0, v4

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v5

    add-int/2addr v4, v5

    aget v0, v0, v6

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v5

    add-int/2addr v0, v5

    invoke-direct {v1, v2, v3, v4, v0}, Landroid/graphics/Rect;-><init>(IIII)V

    sget-boolean v0, Lcom/ninesky/widget/g;->b:Z

    if-eqz v0, :cond_1

    const-string v0, "Widget.QuickAction"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "anchor: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v3, v1, Landroid/graphics/Rect;->left:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v1, Landroid/graphics/Rect;->top:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v1}, Landroid/graphics/Rect;->width()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1
    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v2, v8, v7}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0, v8, v7}, Landroid/view/ViewGroup;->measure(II)V

    iget-object v0, p0, Lcom/ninesky/widget/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getMeasuredHeight()I

    move-result v0

    sget-boolean v2, Lcom/ninesky/widget/g;->b:Z

    if-eqz v2, :cond_2

    const-string v2, "Widget.QuickAction"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "block height: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_2
    invoke-virtual {v1}, Landroid/graphics/Rect;->centerX()I

    move-result v2

    iget v3, v1, Landroid/graphics/Rect;->top:I

    invoke-static {p1}, Lcom/ninesky/widget/g;->c(Landroid/view/View;)I

    move-result v4

    sub-int/2addr v3, v4

    if-le v3, v0, :cond_3

    iget v1, v1, Landroid/graphics/Rect;->top:I

    sub-int v0, v1, v0

    invoke-direct {p0, p1, v2, v0}, Lcom/ninesky/widget/g;->b(Landroid/view/View;II)V

    :goto_0
    return-void

    :cond_3
    iget v0, v1, Landroid/graphics/Rect;->bottom:I

    invoke-direct {p0, p1, v2, v0}, Lcom/ninesky/widget/g;->c(Landroid/view/View;II)V

    goto :goto_0
.end method

.method public final b()Z
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    return v0
.end method

.method public final c()V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/g;->g:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    return-void
.end method
